// 获取sheet中的数据
function getSheetData(sheetId) {
    let all = [];
    let offSet = null;
    while (all.length === 0 || offSet) {
        let recordInstance = Application.Record.GetRecords({ SheetId: sheetId, Offset: offSet });
        offSet = recordInstance.offset;
        all = all.concat(recordInstance.records);
    }
    return all;
}